/* 
 * Copyright (C), 2016-2020, 厦门盈欣宝金融信息服务有限公司
 * Project Name :boot-parent
 * File Name: org.easytouseit.bootprop.config
 * Encoding UTF-8 
 * Version: 1.0 
 * Date: 2018-07-19 11:15
 * History:  
 * 1. Date: 2018-07-19
 *    Author: guojm 
 *    Modification: 新建
 * 2. ...
 */
package org.easytouseit.bootprop.config;

import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.stereotype.Component;
import org.springframework.validation.annotation.Validated;

import javax.validation.constraints.Email;

/**
 * @author guojm
 * @version V1.0
 * @date 2018-07-19
 */
@Component
@ConfigurationProperties(prefix = "blog")
@Validated
public class ValidateProp {
    @Email
    private String email;
    private String nickName;
    private String updateDate;

    public String getEmail() {
        return email;
    }

    public void setEmail(String email) {
        this.email = email;
    }

    public String getNickName() {
        return nickName;
    }

    public void setNickName(String nickName) {
        this.nickName = nickName;
    }

    public String getUpdateDate() {
        return updateDate;
    }

    public void setUpdateDate(String updateDate) {
        this.updateDate = updateDate;
    }

    @Override
    public String toString() {
        return "ValidateProp{" +
                "email='" + email + '\'' +
                ", nickName='" + nickName + '\'' +
                ", updateDate='" + updateDate + '\'' +
                '}';
    }
}
